package spring_learn.a12;

import java.lang.reflect.InvocationTargetException;
import java.lang.reflect.Method;


@FunctionalInterface
public interface InvocationHandler {

    /**
     *
     * @param proxy  代理类本身
     * @param method 要执行的方法
     * @param args   要执行的方法的参数
     * @return
     */
    Object invoke(Object proxy, Method method,Object[] args) throws InvocationTargetException, IllegalAccessException;
}
